<template>
<!-- 返回 -->
  <van-sticky>
    <div class="go-back-head">
      <van-icon name="arrow-left" />
      <div class="go-back-title">{{ title }}</div>
    </div>
    <slot name="other-content"></slot>
  </van-sticky>
</template>

<script>
export default {
  props: {
    title: {
      type: String
    }
  }
}
</script>
<style lang="less" scoped>
.go-back-head {
  background-image: linear-gradient(134deg, #80D9F9 0%, #5466FA 100%);
  height: 88px;
  position: relative;
  .van-icon {
    font-size: 24px;
    position: absolute;
    top: 54px;
    left: 10px;
    color: #fff;
  }
  .go-back-title {
    font-size: 17px;
    height: 44px;
    line-height: 44px;
    color: #fff;
    text-align: center;
    padding-top: 44px;
  }
}
</style>